home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d20
/
pvert.arc
/
BMG.H
< prev
next >
Wrap
C/C++ Source or Header
|
1992-01-15
|
569b
|
23 lines
/*
* bmg.h -> Boyer-Moore-Gosper search definitions
*
* see bmg.c for documentation
*/
#define bmgMAXPAT 133 /* max pattern length */
typedef struct {
char delta[256]; /* ASCII only deltas */
char pat[bmgMAXPAT + 1]; /* the pattern */
char ignore; /* ignore case flag */
} bmgARG;
void bmgCompile(char *s, bmgARG *pattern, int ignore_case);
char * bmgSearch (char *buffer, size_t buflen, bmgARG *pattern);
char * bmgStrstr (char *find,char *in,int ignore);
/*
* END of bmg.h
*/